<html>
<head>
<title>Student List Section{{section}}</title>
</head>
<body>
<p>Section{{section}}</p>
<table width="600" border = "1">
<td width=15%><center><b>Student ID</b></center></td>
<td width=40%><center><b>Student Name</b></center></td>
<td width=15%><center><b>Student Lastname</b></center></td>
<td width=15%><center><b>Section ID</b></center></td>
<td width=15%><center><b>Lab Score</b></center></td>
<td width=15%><center><b>Midterm Score</b></center></td>
<td width=15%><center><b>Final Score</b></center></td>
<td width=15%><center><b>Total Score</b></center></td>

	{% for i in student_list %}		
		<tr>
		<td><center>{{i.Student_ID}}</center></td>
		<td><center>{{i.Student_Name}}</center></td>
		<td><center>{{i.Student_Lastname}}</center></td>
		<td><center>{{i.Section_ID}}</center></td>
		{% for j in LabID %}
			{% ifequal j.0 i.Lab_ID%}
		<td><center><a href="../lab/{{i.Lab_ID}}">{{j.1}}</a></center></td>
			{% endifequal %}
		{% endfor %}

		{% for j in MidtermID %}
			{% ifequal j.0 i.Lab_ID%}
		<td><center><a href="../midterm/{{i.Midterm_ID}}">{{j.1}}</a></center></td>
			{% endifequal %}
		{% endfor %}

		{% for j in FinalID %}
			{% ifequal j.0 i.Lab_ID%}
		<td><center><a href="../final/{{i.Final_ID}}">{{j.1}}</a></center></td>
			{% endifequal %}
		{% endfor %}
	<td><center>{{i.Total_Score}}</center></td>

		</tr>
	{% endfor %}
	
</table>
<br>
<FORM><INPUT TYPE="BUTTON" VALUE="Go Back" ONCLICK="history.go(-1)"></FORM>
<a href="/"><input type="button" value="Logout"></a>
</body>
</html>
